﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CommunicationProtocol.dto
{
    public class CheckBuyablePlantAvailable : Command
    {

        short controllerId;
        public CheckBuyablePlantAvailable(string name) : base(2)
        {
            controllerId = short.Parse(name);

        }

        public override byte[] GetBytes()
        {
            return new byte[] { 
                functionCode,
                (byte)((controllerId>>8)&0xff),
                (byte)(controllerId&0xff),
            };
        }
    }
}
